﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.DealIndexModels>" %>
<div class="clear"></div>
<%var path = "/deal/index/{0}/{1}/{2}/{3}"; %>
<div class="path">
    <a href="/home">Trang chủ</a>
    <%if(Model.Category != null){ %>
    <img src="/images/mq/icon-16-path.png" width="16" height="16" style="vertical-align:middle" />
    <%var l2 = SDT.Lib.Helpers.TextHelper.ToUrlShort(string.Format(path, Model.CategoryID, 0, Model.TypeID.HasValue ? Model.TypeID.Value : 0, 0)); %>
    <a href="<%=l2 %>"><%= Html.Encode(Model.Category.Name)%></a>
    <%} %>
    <%if(Model.PathTitle != null && Model.PathTitle !=string.Empty){ %>
    <img src="/images/mq/icon-16-path.png" width="16" height="16" style="vertical-align:middle" />
    <%= Html.Encode(Model.PathTitle)%>
    <%} %>
    
</div>
<div class="line"></div>